package com.yuanfeng.business.controller;

import com.yuanfeng.business.dto.ShopRecordDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @ClassName ShopRecordController
 * @Description
 * @Author hyq
 * @Date 2023/7/10 10:49
 * @Version 1.0
 **/
@RestController
@RequestMapping("/shop/record")
public class ShopRecordController extends BaseController{

    /**
     * 根据活动类型查询报名店铺
     * @param param
     * @return
     * @throws IOException
     */
    @PostMapping("/queryShopRegist")
    public ResponseResult queryShopRegist(@RequestBody(required = false) ShopRecordDTO param)
            throws IOException {
        ResponseResult result=shopRecordService.queryShopRegist(param);
        return result;
    }
}
